/*
 * @Author: Lizhenyu
 * @Date: 2021-10-11 10:42:55
 * @FilePath: \usp-osm-frondend\src\api\masterData.js
 */
import { service } from '@/utils/request'

const api = {
  attachmentData: '/admin/mdm/attachment-master-data/list',
  attachmentDetail: '/admin/mdm/attachment-master-data/detail'
}

export function getAttachmentData (data) {
  return service({
    url: api.attachmentData,
    method: 'post',
    data
  })
}

export function getAttachmentDetail (id) {
  return service({
    url: api.attachmentDetail + `/${id}`,
    method: 'get'
  })
}
